package com.hanko.oauth.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class ApiController {

    @RequestMapping("/{id}")
//    @PreAuthorize("hasAnyRole('ROLE_ADMIN')")
    public String getBlogById(@PathVariable long id) {
        return "This is api "+id;
    }
}
